import request from '@/utils/request'

// 查询功能房预约列表
export function listReservation(query) {
  return request({
    url: '/routine/reservation/list',
    method: 'get',
    params: query
  })
}

// 查询功能房预约详细
export function getReservation(id) {
  return request({
    url: '/routine/reservation/' + id,
    method: 'get'
  })
}

// 新增功能房预约
export function addReservation(data) {
  return request({
    url: '/routine/reservation/add',
    method: 'post',
    data: data
  })
}

// 修改功能房预约
export function updateReservation(data) {
  return request({
    url: '/routine/reservation/update',
    method: 'post',
    data: data
  })
}

// 删除功能房预约
export function delReservation(id) {
  return request({
    url: '/routine/reservation/' + id,
    method: 'post'
  })
}
export function selectRtFuReservationTime(ro_no,rt_Time) {
  return request({
    url: '/routine/reservation/' + ro_no+'/'+rt_Time,
    method: 'get'
  })
}
//查看个人预约详情
export function myReverDetail(query) {
  return request({
    url: '/routine/reservation/resuser/list',
    method: 'get',
    params: query
  })
}

